Turns out you need to turn on "auto flush" in order to get the
information sent over the network completely. You turn on auto flush in
the PrintWriter constructor. Thus, for the Server, use the following:

ServerSocket serverSocket = new ServerSocket (port);
Socket clientSocket = serverSocket.accept();
Scanner in = new Scanner (clientSocket.getInputStream());
PrintWriter out = new PrintWriter (clientSocket.getOutputStream(), true);

and for the Client:

Socket clientSocket = new Socket(server, port);
Scanner in = new Scanner (clientSocket.getInputStream());
PrintWriter out = new PrintWriter (clientSocket.getOutputStream(), true);
